package com.sh.caryr.erp.entity.enums;

import com.baomidou.mybatisplus.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

public enum OrderStatus implements IEnum {
    UNPAY(0, "待付款"),
    DRAFT(10, "待审核"),
    WAIT_ASSGN_EXP(20, "待分配快递"),
    WAIT_PRINT_EXP(30, "待打印快递单待"),
    WAIT_PRINT_OUTBOUND(40, "待打印发货单待"),
    WAIT_CHECKING(50, "待包装待验货"),
    WAIT_PACKING(60, "待包裹待称重"),
    WAIT_DELIVER(70, "待发货"),
    WAIT_RECEIVE(80, "已发货"),
    SUCCESS(90, "已签收"),
    CLOSE(100, "关闭"),

    RETURN(102, "退货"),
    EXCHANGE(104, "换货"),

    VOID(110, "作废"),
    SUSPEND(120, "挂起"),
    STOCKOUT(130, "缺货");

    private final int value;

    private final String desc;

    OrderStatus(final int value, final String desc) {
        this.value = value;
        this.desc = desc;

    }

    @JsonValue
    @Override
    public Integer getValue() {
        return this.value;
    }

    public String getDesc() {
        return this.desc;
    }
}
